import request from "../utils/request";

export default ({
  /**
   * 登录
   * @param userInfo
   * @returns {*}
   */
  userLogin(userInfo) {
    return request({
      url: `/user/pcuserinfo/login`,
      method: 'post',
      data: userInfo
    })
  },
  TX_SMS(phone){
    return request({
      url:`/tencentSms/send/${phone}`,
      method:'get'
    })
  },
  /**
   * 注册
   * @returns {*}
   */
  userRegister(registerVo) {
    return request({
      url: `/user/pcuserinfo/register`,
      method: 'post',
      data: registerVo
    })
  },
  /**
   * 登录获得用户信息
   * @returns {*}
   */
  getUserInfoByToken() {
    return request({
      url: '/user/pcuserinfo/getUserInfoByToken',
      method: 'get'
    })
  }

})
